package com.cust.cow.controller;

import com.cust.cow.common.Result;
import com.cust.cow.pojo.cattleAddressBase;
import com.cust.cow.service.CattleAddressBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/cattleAddressBase")
@CrossOrigin("*")
public class CattleAddressBaseController {
    @Autowired
    CattleAddressBaseService cattleAddressBaseService;

    @PostMapping("updateCattleAddressBase")
    public Result updateCattleAddressBase(@RequestBody cattleAddressBase cattleAddressBase){
        return cattleAddressBaseService.UpdateCattleAddressBase(cattleAddressBase);
    }

    @PostMapping("insertCattleAddressBase")
    public Result insertCattleAddressBase(cattleAddressBase cattleAddressBase){
        return cattleAddressBaseService.insertCattleAddressBase(cattleAddressBase);
    }
}
